function add(){
	var userId = $("#userId").val();
	var userAccount = $("#userAccount").val();
	var formerFreeNumRemain = $("#formerFreeNumRemain").val();
	var freeNumRemain = $.trim($("#freeNumRemain").val());
	if (!CheckUtil.isNotNull(freeNumRemain) || !CheckUtil.isInt(freeNumRemain, "+") || !CheckUtil.isNumeric(freeNumRemain)) {
		layer.msg("请输入正确的免费次数!");
		return;
	}
	if ($("#isReCommit").val() == 0) {
		$("#isReCommit").val(1);
		$.ajax({
			type: "post",
			url: "/user/updateFreeNum",
			async:false,
			data:{freeNumRemain:freeNumRemain, userAccount:userAccount, userId:userId, formerFreeNumRemain:formerFreeNumRemain},
			success: function(data) {
				layer.msg(data);
				/* var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
				parent.layer.close(index); //再执行关闭    */
				setTimeout("parent.location.reload();",1000);
			}
		});
	}
}